package com.huxb.usercenter.controller;

import com.huxb.usercenter.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author huxb
 * @date 2020/2/8 0008 下午 4:25
 */
@RequestMapping("/users")
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/{id}")
    public Object findUserDetailById(@PathVariable("id") Integer id) {
      return  userService.findUserDetailById(id);
    }
}
